package com.ybchen.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * description:
 * date: 2023/10/23 15:09
 * author: chenyanbin
 * version: 1.0
 */
@RestController
@Slf4j
public class HelloController {
    @Value("${customName}")
    String value;

    @GetMapping("/")
    public Object hello() {
        log.info("收到请求。。。。。。。。。。。" + value + "," + System.currentTimeMillis());
        return value;
    }
}